package com.qingcloud.adminbackend.entity.usergroup;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 用户组和用户关系表
 * </p>
 *
 * @author wangjinnan
 * @since 2018-11-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_usergroup_user")
public class SysUsergroupUser extends Model<SysUsergroupUser> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private String id;

    /**
     * 组ID
     */
    @ApiModelProperty("组ID")
    private String groupId;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("应用ID")
    private Integer appId;

    @ApiModelProperty("角色ID")
    private Integer roleId;

    @ApiModelProperty(hidden = true)
    private Date createDt = new Date();

    @ApiModelProperty(hidden = true)
    private String createBy;

    @ApiModelProperty(hidden = true)
    private Date modifyDt = new Date();

    @ApiModelProperty(hidden = true)
    private String modifyBy;

}
